﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;

namespace Transponder_Storage
{
    public class Db : DbContext
    {
        /// <summary>
        /// 
        /// </summary>
        public DbSet<DeviceInformation> DeviceInformation { get; set; }
        
        /// <summary>
        /// 
        /// </summary>
        /// <param name="optionsBuilder"></param>
        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
            => optionsBuilder.UseNpgsql(@"Host=pgm-bp1uj7y264b0ne836o.pg.rds.aliyuncs.com;Username=postgres;Password=PosTsqlUserbD390od6ed;Database=Iot-device-docking-with-en-niu-platform;port=5432");
    }
}
